var classify = {
  init: function () {
    this.render()
    return this
  },
  render: function () {
    var html = ''
    var data = page.data.classify;
    var len = data.length;
        var spacing = '';
        var _width = '';
        if (len > 1) {
            _width = data[0].picWidth;
            spacing = (1180 - _width * len) / (len - 1)
        }
    for (var i = 0, l = data.length; i < l; i++) {
      var src = data[i].typePicture[0].picPath2;
      var id = "classify" + "-" + i;
      var style = 'left:' + i * (_width + spacing) + 'px;width:' + data[0].picWidth + 'px;height:' + data[0].picHeight + 'px;';
      
      html +=
        '<div class="item" style="' +
        style +
        '" id="' +
        id +
        '"><img src="' +
        src +
        '"/></div>';
    }
    $("#classify").html(html)
    return this
  }
};
